package com.candoit.webapps.pricing.util;

import org.joda.time.DateTime;

public class MyTime {

	public static boolean isAfter(Long t1, Long t2){
		DateTime dt1 = new DateTime(t1);
		DateTime dt2 = new DateTime(t2);
		
		return dt1.isAfter(dt2);
	}
	
	public static Long getFirstDayOfThisMonth(){
		DateTime hoy = new DateTime(
				DateTime.now().getYear(),
				DateTime.now().getMonthOfYear(),
				DateTime.now().getDayOfMonth(),
				0,	/*hour*/
				0	/*minute*/
			);
		return hoy.getMillis()/1000;
	}
}
